﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="VideoList.aspx.cs" Inherits="Admin_Course_VideoList" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>


<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
   <title>视频信息</title>
     <link href="../../css/assets/css/bootstrap.min.css" rel="stylesheet" />
    <link href="../../css/admin.css" rel="stylesheet" />
    <script src="../../js/jquery-1.7.2.min.js"></script>
    <script src="../../css/assets/js/bootstrap.min.js"></script>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <div class="row">
                <div runat="server" id="divCondition">

                    <div class="col-lg-4 col-md-4 col-sm-6 colSpace" style="margin-top: -2px">
                        <br />
           
           <asp:Button id="btnAdd" runat="server" CssClass="btn btn-primary btnSize" Text="添加" OnClick="btnAdd_Click"></asp:Button>
          <asp:Label runat="server" CssClass="txtWarn" ID="lblWarn"></asp:Label>
             </div>
          </div>
            </div>
            <br />
            <div>
                <asp:GridView runat="server" ID="gridList" CssClass="table table-striped table-bordered table-hover" AutoGenerateColumns="False" DataKeyNames="ItemID" OnRowDeleting="gridList_RowDeleting">
                    <Columns>
                      
                        <asp:BoundField DataField="ItemName" HeaderText="视频名称" HeaderStyle-Width="35%"/>
                  <%-- <asp:BoundField DataField="Introduce" HeaderText="视频简介" />--%>
                        <asp:BoundField DataField="ValidTime" HeaderText="视频效期" />                   
                       <%-- <asp:BoundField DataField="JoinCount" HeaderText="参加人数" />--%>
                        <asp:BoundField DataField="StartTime" HeaderText="开始时间" />
                        <asp:BoundField DataField="CreateTime" HeaderText="创建时间"/>
                   
                     <asp:TemplateField HeaderText="操作">

                     <ItemTemplate>                             
                    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# "VideoEdit.aspx?ItemID="+Eval("ItemID")%>'>编辑</asp:HyperLink>&nbsp;&nbsp;
                   <asp:LinkButton runat="server" ID="btnDel" OnClientClick="return confirm('确定删除吗？')" CommandName="Delete" CausesValidation="False">删除</asp:LinkButton>              
                      </ItemTemplate>
                         
                   </asp:TemplateField>

                    </Columns>
                </asp:GridView>
            </div>

            <div class="pagerLayout">
                <webdiyer:AspNetPager ID="netPager" CssClass="pagerLayout" runat="server" FirstPageText="首页" LastPageText="尾页"
                    NextPageText="下一页" OnPageChanged="netPager_PageChanged" PrevPageText="上一页"
                    PageSize="15">
                </webdiyer:AspNetPager>
            </div>
        </div>
    </form>
</body>
</html>
